<%--@elvariable id="pages" type="com.red.servlet.user.UserQueryServlet"--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>房屋管理</title>
	<%
		pageContext.setAttribute("APP_PATH", request.getContextPath());
	%>
	<link href="${APP_PATH}/static/bootstrap-3.4.1-dist/css/bootstrap.min.css" rel="stylesheet">
	<link href="${APP_PATH}/static/css/dashboard.css" rel="stylesheet">
	<link href="${APP_PATH}/static/css/common_style.css" rel="stylesheet">
</head>
<body>
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
	<h1 class="page-header">房屋管理</h1>
	<form id="father" method="get" action="${APP_PATH}/houseQuery" target="postTo"><%-- 查询表单 --%>
		<input type="hidden" name="page" value="1">
		<input type="hidden" name="mode" value="2">
		<div class="row">
			<div class="form-group">
				<%--            删除面板--%>
				<div id="delete_group">
					<div class="col-md-1">
						<button fun="yes" type="button" class="btn btn-primary btn-block" onclick="sendData()">确定
						</button>
					</div>
					<div class="col-md-1">
						<button fun="cancel" type="button" class="btn btn-info btn-block">取消</button>
					</div>
					<div class="col-md-1"></div>
				</div>
				<%--   修改面板--%>
				<div id="modify_group">
					<div class="col-md-1">
						<button fun="cancel" type="button" class="btn btn-info btn-block">返回</button>
					</div>
					<div class="col-md-2"></div>
				</div>
				<%--   操作面板--%>
				<div id="option_group">
					<div class="col-lg-1">
						<a href="${APP_PATH}/jsp/manage/house_view.jsp" class="btn btn-primary btn-block">添加</a>
					</div>
					<div class="col-lg-1">
						<button fun="delete" type="button" class="btn btn-primary btn-block">删除</button>
					</div>
					<div class="col-lg-1">
						<button fun="modify" type="button" class="btn btn-primary btn-block">修改</button>
					</div>
				</div>
				<%--操作面板结束--%>
				<div class="col-lg-1">
					<label><input type="checkbox" name="status" value="未出租" checked>未出租</label>
				</div>
				<div class="col-lg-1">
					<label><input type="checkbox" name="status" value="已出租" checked>已出租</label>
				</div>
				<div class="col-lg-1">
					<label><input type="checkbox" name="status" value="洽谈中" checked>洽谈中</label>
				</div>
				<div class="col-md-1 col-md-offset-3">
					<select class="form-control" name="size">
						<c:forEach var="i" begin="10" end="50" step="10">
							<option value="${i}">${i}</option>
						</c:forEach>
					</select>
				</div>
				<div class="col-md-2">
					<button class="btn btn-primary btn-block" type="submit">查询</button>
				</div>
			</div>
		</div>
	</form>
	<hr/>
	<%-- 查询表单结束 --%>
	<iframe id="list" name="postTo" src="${APP_PATH}/houseQuery?mode=2&page=1"></iframe>
</div>
<div id="user_add_modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
	<div class="modal-dialog modal-lg" role="form">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
						aria-hidden="true">&times;</span></button>
				<h4 class="modal-title">添加用户</h4>
			</div>
			<div class="modal-body">
				<div class="container-fluid">
					<form action="" method="post">
					</form>
				</div>
			</div>
		</div><!-- /.modal-content -->
	</div><!-- /.modal-dialog -->
</div>
<script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"
		integrity="sha384-nvAa0+6Qg9clwYCGGPpDQLVpLNn0fRaROjHqs13t4Ggj3Ez50XnGQqc/r8MhnRDZ"
		crossorigin="anonymous"></script>
<script src="${APP_PATH}/static/bootstrap-3.4.1-dist/js/bootstrap.min.js"></script>
<script src="${APP_PATH}/static/js/house.js"></script>
</body>
</html>
